#include <iostream>
using namespace std;

class Point {
  private:
    int x, y;
    static int count;

  public:
    Point(int m = 0, int n = 0) : x(m), y(n) { count++; }
    ~Point() { count--; }
    int GetX() const { return x; }
    int GetY() const { return y; }
    static void ShowCount() { cout << count << endl; }
};

int Point::count = 0;

int main() {
    Point::ShowCount();
    Point *p = new Point;
    Point::ShowCount();
    delete p;
    Point::ShowCount();

    return 0;
}
